------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--[[

    一些官方的 话语替代器。

    使用了hook过的官方的台词提取器：GetString(inst, stringtype, modifier, nil_missing)

    其中，拒绝食物是  GetString(inst, "ANNOUNCE_EAT", "YUCKY")

]]--
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

local old_GetString = rawget(_G,"GetString")
rawset(_G,"GetString",function(inst, stringtype, modifier, nil_missing,...)
    if inst and inst.components.hutao_com_dialogue then
        local temp = inst.components.hutao_com_dialogue:GetString(stringtype, modifier, nil_missing,...)
        if temp then
            return temp
        end
    end
    return old_GetString(inst, stringtype, modifier, nil_missing,...)
end)